import 'package:flutter/material.dart';
import 'package:flutter_jd/routes/Routes.dart'; 
import './routes/Routes.dart';
import 'package:provider/provider.dart';
import './provider/Counter.dart';
import './provider/Cart.dart';

void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider(builder: (_) => Counter(),),
        ChangeNotifierProvider(builder: (_) => Cart(),)
      ],
      child: MaterialApp(
        theme: ThemeData(
          primaryColor: Colors.white
        ),
        debugShowCheckedModeBanner: false, //去掉右上角debug
        // home: Tabs(),
        initialRoute: '/',
        onGenerateRoute: onGenerateRoute,
      ),
    );
  }
}
 